package com.wtwd.device.service;


import com.wtwd.device.model.entity.SleepRecord;
import com.wtwd.device.model.vo.RespEntity;

/**
 * @author mjy
 * @date 2021/09/02
 * @description
 */
public interface SleepRecordService {
    RespEntity getDaysSleepRecord(Long deviceId, String startTime, String endTime);

    RespEntity getMonthSleepRecord(Long deviceId, String month);

    RespEntity addSleepRecord(SleepRecord sleepRecord);

    Integer clearSleepRecordByDate(String date);

    SleepRecord getSleepRecordByDeviceIdAndTime(Long id, String time);

    Integer deleteSleepRecordByDeviceId(Long id);
}
